<template>
  <div id="user-quick-login">
    <navbar>快速登录/注册</navbar>
    <div class="all">
      <div class="wrapper-main">
        <div class="item item_bg">
          <input type="text" class="txt_input login_txt" placeholder="手机号码" v-model="mobile">
        </div>
        <div class="item code-box">
          <div class="code-item">
            <input type="number" class="txt_input login_txt item_bg" placeholder="验证码" v-model="code">
          </div>

          <verify label="获取验证码" title="短信发送中.." message="<%counter%>秒后再次发送" code-type="1" :account="mobile"></verify>
        </div>
        <div class="item item_btns" @click="hint">
                    <span class="btn_login alpah80">
                       <button :class="{disabled:!server}" @click="login">快速登录/注册</button>
                      <!--<submit v-ref:button @submit="login" type="danger" height="44" :disabled="!server">快速登录/注册</submit>-->
                    </span>
        </div>

        <div class="server">
          <CheckBox v-model="server">我同意</CheckBox>
          <span>
                        <a href="http://www.thenorthface.com.cn/help/agreement" target="_blank">TheNorthFace®北面官网服务条款</a>
                    </span>
        </div>
      </div>
    </div>
  </div>
</template>
<script type="text/ecmascript-6">
  import js from  '../../cores/content-hub/login-quick.vue';
  export default {
    extends: js
  }
</script>
<style rel="stylesheet/less" lang="less">
  #user-quick-login {
  .all {
    width: 100%;
    height: 100%;
    background: url('../../static/img/lor-bg.png') no-repeat;
    background-size: cover;
    box-sizing: border-box;

  .wrapper-main {
    padding: 50px 12px 12px;

  .item_bg {
    background: url('../../static/img/loginbg.png');
  }

  .item {
    margin-bottom: 20px;
    overflow: hidden;

  .verify-code {
    background-color: #262626;
    margin-left: 15px;
  }

  .tab {
    float: right;
    padding-right: 25px;
    background: url('../../static/img/switch.png') no-repeat right;
    line-height: 40px;
    font-size: 12px;
    background-size: 20px;
    color: white;
  }

  .txt_input {
    width: 100%;
    height: 44px;
    line-height: normal;
    background-color: transparent;
    padding-left: 12px;
    border: none;
    font-size: 16px;
    color: white;
    box-sizing: border-box;
    outline: 0;
  }
  }
  .code-box {
    display: flex;

  .code-item {
    flex: 1;
  }
  }
  .item_btns {
    margin-top: 50px;

  .btn_login {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-decoration: none;
    text-align: center;
    color: #FFFFFF;
    font-size: 20px;
  button{
    height: 44px;
    width: 100%;
    font-size: 14px;
    line-height: 44px;
    color: white;
    background-color: #ed0000;
  }
  button.disabled{
    background-color: #ac1925;
  }
  .alpah80 {
    opacity: 0.8;

  }
  }
  }
  .item_option {
    display: block;
    color: white;
    text-align: center;
    margin-top: 30px;
    font-size: 15px;

  span {
    color: white;
    margin: 0 15px;
  }
  }
  .server{
    text-align: center;

  a{
    color: #FFFFFF;
    font-size: 14px;
  }
  label{
    width: auto;
    color: #ffffff;
  }
  }
  }
  }

  /*弹框领取注册礼*/
  .register-success {
    color: #000000;

  span {
    display: block;
    width: 100%;
    height: 44px;
    background: #ed1e31;
    text-decoration: none;
    line-height: 44px;
    text-align: center;
    font-size: 18px;
    color: #fff;

  &:last-child{
     margin-top: 15px;
   }
  }
  }
  }
</style>
